package com.mb.app.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author liliping
 * @since 2019-04-15
 */
@TableName("tb_order")
public class TbOrder implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 订单编号
	 */
	@TableId(value="order_id")
	private String orderId;

	/**
	 * 下单人编号
	 */
	@TableField(value="member_id")
	private Long memberId;

	/**
	 * 订单状态
            0:待付款
            1:已付款 
            2:已发货
            3:已完成
            4:已评价
            5:退款中
            6:退款完成
            9:已取消
	 */
	@TableField(value="order_status")
	private Integer orderStatus;

	/**
	 * 订单日期
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 数据状态 1:正常 0:删除
	 */
	@TableField(value="data_status")
	private Integer dataStatus;

	/**
	 * 付款时间
	 */
	@TableField(value="pay_time")
	private Date payTime;

	/**
	 * 删除时间
	 */
	@TableField(value="delete_time")
	private Date deleteTime;

	/**
	 * 订单总金额
	 */
	@TableField(value="total_amt")
	private BigDecimal totalAmt;

	/**
	 * 商品金额
	 */
	@TableField(value="product_amt")
	private BigDecimal productAmt;

	/**
	 * 快递费用
	 */
	@TableField(value="ship_fee")
	private BigDecimal shipFee;

	/**
	 * 支付金额
	 */
	@TableField(value="pay_amt")
	private BigDecimal payAmt;

	/**
	 * 付款方式 1:在线支付  2:货到付款
	 */
	@TableField(value="pay_type")
	private Integer payType;

	/**
	 * 快递公司
	 */
	@TableField(value="ship_company_id")
	private Long shipCompanyId;

	/**
	 * 收货人姓名
	 */
	@TableField(value="receive_name")
	private String receiveName;

	/**
	 * 收货电话
	 */
	@TableField(value="receive_tel")
	private String receiveTel;

	/**
	 * 收货地区编号
	 */
	@TableField(value="receive_area_id")
	private String receiveAreaId;

	/**
	 * 收货地区详细地址
	 */
	@TableField(value="dtl_addr")
	private String dtlAddr;

	/**
	 * 发货时间
	 */
	@TableField(value="ship_time")
	private Date shipTime;

	/**
	 * 快递单号
	 */
	@TableField(value="ship_trace_no")
	private String shipTraceNo;

	/**
	 * 申请退款时间
	 */
	@TableField(value="req_return_time")
	private Date reqReturnTime;

	/**
	 * 退款理由
	 */
	@TableField(value="req_return_reason")
	private String reqReturnReason;

	/**
	 * 退款完成时间
	 */
	@TableField(value="finish_return_time")
	private Date finishReturnTime;

	/**
	 * 订单完成时间
	 */
	@TableField(value="finish_time")
	private Date finishTime;

	/**
	 * 订单完成时间
	 */
	@TableField(value="remark")
	private String remark;



	@TableField(exist = false)
	private String nickName;


	@TableField(exist = false)
	private String phone;

	@TableField(exist = false)
	private String shipName;

	@TableField(value ="is_after_sale")
	private Integer isAfterSale;

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getIsAfterSale() {
		return isAfterSale;
	}

	public void setIsAfterSale(Integer isAfterSale) {
		this.isAfterSale = isAfterSale;
	}

	public void setShipName(String shipName) {
		this.shipName = shipName;
	}


	public String getShipName() {
		return shipName;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long userId) {
		this.memberId = userId;
	}

	public Integer getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(Integer dataStatus) {
		this.dataStatus = dataStatus;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Date getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(Date deleteTime) {
		this.deleteTime = deleteTime;
	}

	public BigDecimal getTotalAmt() {
		return totalAmt;
	}

	public void setTotalAmt(BigDecimal totalAmt) {
		this.totalAmt = totalAmt;
	}

	public BigDecimal getProductAmt() {
		return productAmt;
	}

	public void setProductAmt(BigDecimal productAmt) {
		this.productAmt = productAmt;
	}

	public BigDecimal getShipFee() {
		return shipFee;
	}

	public void setShipFee(BigDecimal shipFee) {
		this.shipFee = shipFee;
	}

	public BigDecimal getPayAmt() {
		return payAmt;
	}

	public void setPayAmt(BigDecimal payAmt) {
		this.payAmt = payAmt;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Long getShipCompanyId() {
		return shipCompanyId;
	}

	public void setShipCompanyId(Long shipCompanyId) {
		this.shipCompanyId = shipCompanyId;
	}

	public String getReceiveName() {
		return receiveName;
	}

	public void setReceiveName(String receiveName) {
		this.receiveName = receiveName;
	}

	public String getReceiveTel() {
		return receiveTel;
	}

	public void setReceiveTel(String receiveTel) {
		this.receiveTel = receiveTel;
	}

	public String getReceiveAreaId() {
		return receiveAreaId;
	}

	public void setReceiveAreaId(String receiveAreaId) {
		this.receiveAreaId = receiveAreaId;
	}

	public String getDtlAddr() {
		return dtlAddr;
	}

	public void setDtlAddr(String dtlAddr) {
		this.dtlAddr = dtlAddr;
	}

	public Date getShipTime() {
		return shipTime;
	}

	public void setShipTime(Date shipTime) {
		this.shipTime = shipTime;
	}

	public String getShipTraceNo() {
		return shipTraceNo;
	}

	public void setShipTraceNo(String shipTraceNo) {
		this.shipTraceNo = shipTraceNo;
	}

	public Date getReqReturnTime() {
		return reqReturnTime;
	}

	public void setReqReturnTime(Date reqReturnTime) {
		this.reqReturnTime = reqReturnTime;
	}

	public String getReqReturnReason() {
		return reqReturnReason;
	}

	public void setReqReturnReason(String reqReturnReason) {
		this.reqReturnReason = reqReturnReason;
	}

	public Date getFinishReturnTime() {
		return finishReturnTime;
	}

	public void setFinishReturnTime(Date finishReturnTime) {
		this.finishReturnTime = finishReturnTime;
	}

	public Date getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}

}
